package com.openvas.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.openvas.commons.common.annotation.Excel;
import com.openvas.commons.common.core.domain.BaseEntity;

/**
 * 主键对象 table_host
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class TableHost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** host的显示与asset_id对应 */
    private String assetId;

    /** 主机的名称 */
    @Excel(name = "主机的名称")
    private String name;

    /** 主机的hostname */
    @Excel(name = "主机的hostname")
    private String hostName;

    /** 主机的IP地址 */
    @Excel(name = "主机的IP地址")
    private String ipAddress;

    /** 主机的操作系统 */
    @Excel(name = "主机的操作系统")
    private String os;

    /** 主机的危险程度 */
    @Excel(name = "主机的危险程度")
    private String severity;

    /** 创建的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modificationTime;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private String userName;

    public void setAssetId(String assetId) 
    {
        this.assetId = assetId;
    }

    public String getAssetId() 
    {
        return assetId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setHostName(String hostName) 
    {
        this.hostName = hostName;
    }

    public String getHostName() 
    {
        return hostName;
    }
    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }
    public void setOs(String os) 
    {
        this.os = os;
    }

    public String getOs() 
    {
        return os;
    }
    public void setSeverity(String severity) 
    {
        this.severity = severity;
    }

    public String getSeverity() 
    {
        return severity;
    }
    public void setModificationTime(Date modificationTime) 
    {
        this.modificationTime = modificationTime;
    }

    public Date getModificationTime() 
    {
        return modificationTime;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetId", getAssetId())
            .append("name", getName())
            .append("hostName", getHostName())
            .append("ipAddress", getIpAddress())
            .append("os", getOs())
            .append("severity", getSeverity())
            .append("modificationTime", getModificationTime())
            .append("userName", getUserName())
            .toString();
    }
}
